Launch-harden CLI and prepare pre.74 - #1
Merged
Conversation
Phase 1 of the directors v2 redesign: classifyReversibility(tool, args) replaces the old shell-regex isDestructive. It judges whether an action is reversible (auto-run unattended), irreversible (escalate to the human), or unknown (escalate by default). Key correctness wins over the regex: checkpointed file writes are reversible (/rewind restores them), ssh/MCP/network/the-outbound-message-itself are covered, and ambiguous commands route to unknown instead of being waved through. Pure and exhaustively tested; no wiring yet. Also teaches commandPrefix about helm.
Phase 2: a Director persona persisted as markdown+frontmatter (global, reusable), and a per-project append-only activity log that is the evidence behind graduation — it records what the director proposed and how often the human agreed, per command family, flagging irreversible denials as a graduation blocker. `codebase director hire|list|status|fire` manages them; status renders the track record. Every hire starts cautious — autonomy is earned, never chosen.
Fetches GET /api/v1/credits/balance with the OAuth token and prints credits used/allowance, a progress bar, % and reset date, plus build turns remaining. Distinct from /cost (session token spend). Server accepts the token's 'credits' scope.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
2.0.0-pre.74so the public package matches the tested launch branch and consistently points users to codebase.designVerification
npm run check(131 files, 1,288 tests)npm run buildnpm run smoke:helpRelease
Merge first, then tag the merged commit
v2.0.0-pre.74; the existing release workflow publishes npm with provenance and builds platform binaries.